<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>满分公司OA系统</title>

    <!-- Bootstrap Core CSS -->
    <link href="__PUBLIC__/MB_PUBLIC/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="__PUBLIC__/MB_PUBLIC/css/sb-admin.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="__PUBLIC__/MB_PUBLIC/css/plugins/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="__PUBLIC__/MB_PUBLIC/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- MY CSS -->
    <link href="__PUBLIC__/MY_PUBLIC/my.css" rel="stylesheet">

    <!-- jquery -->
    <script src="__PUBLIC__/MY_PUBLIC/jquery-1.8.3.min.js"></script>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>
<!-- style="background:url('__PUBLIC__/css/a.jpeg')" -->
<body style="background-image:url('__PUBLIC__/css/a.jpeg');">


    <div id="wrapper" style="background-image:url('__PUBLIC__/css/a.jpeg');">

        <!-- Navigation -->
        <nav class="navbar navbar-inverse navbar-fixed-top" style='padding:0px;background-color:#f0f0f0;border:0px solid white;'role="navigation">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header ">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand h4" style='color:#9D9D9D;' href="index.html">满分公司OA系统</a>
            </div>
            <!-- Top Menu Items -->
            <ul class="nav navbar-right top-nav">
                <li class="dropdown">
                    <a class="h4"><PHP>echo $_SESSION['weather']['tianqi'];</PHP> <PHP>echo $_SESSION['weather']['l_tmp'];</PHP>℃~<PHP>echo $_SESSION['weather']['h_tmp'];</PHP>℃</a>
                </li>
                <li class="dropdown">
                    <a class="dropdown-toggle h4" data-toggle="dropdown"><i class="fa fa-user"></i> <{$Think.session.user.name}>,欢迎您 <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="<{:U('Gr/index')}>"><i class="fa fa-fw fa-user"></i> 个人中心</a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="<{:U('Denglu/logout')}>"><i class="fa fa-fw fa-power-off"></i> 退出</a>
                        </li>
                    </ul>
                </li>
            </ul>
            <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
            <div class="collapse navbar-collapse navbar-ex1-collapse">

                <ul class="nav navbar-nav side-nav h4">
                    <li >
                        <a href="<{:U('Yg/index')}>"><i class="glyphicon glyphicon-home">&nbsp;</i>员工通道首页</a>
                    </li>
                    <li>
                        <a href="<{:U('Lxr/index')}>"><i class="glyphicon glyphicon-earphone">&nbsp;</i>公司联系人</a>
                    </li>
                    <li>
                        <a href="<{:U('Message/index')}>"><i class="glyphicon glyphicon-comment">&nbsp;</i> 留言板</a>
                    </li>
                    <li>
                        <a href="javascript:;" data-toggle="collapse" data-target="#demo3"><i class="glyphicon glyphicon-user">&nbsp;</i> 邮箱管理 <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo3" class="collapse">
                            <li>
                                <a href="<{:U('Email/index')}>"> &nbsp;&nbsp;&nbsp;&nbsp;新邮件</a>
                            </li>
                            <li>
                                <a href="<{:U('Email/add')}>"> &nbsp;&nbsp;&nbsp;&nbsp;书写邮件</a>
                            </li>
                            <li>
                                <a href="<{:U('Email/ewrite')}>"> &nbsp;&nbsp;&nbsp;&nbsp;发件箱</a>
                            </li>
                            
                        </ul>
                    </li>
                    <li>
                        <a href="<{:U('Food/index')}>"><i class="glyphicon glyphicon-fire">&nbsp;</i> 员工餐饮</a>
                    </li>
                     <li <PHP>if($_SESSION['user']['uposition']>3){echo "style='display:none';";}</PHP>>
                        <a href="javascript:;" data-toggle="collapse" data-target="#demo"><i class="glyphicon glyphicon-user">&nbsp;</i> 员工管理 <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo" class="collapse">
                            <li>
                                <a href="<{:U('User/index')}>"> &nbsp;&nbsp;&nbsp;&nbsp;员工列表</a>
                            </li>
                            <li>
                                <a href="<{:U('User/add')}>"> &nbsp;&nbsp;&nbsp;&nbsp;添加员工</a>
                            </li>
                        </ul>
                    </li>
                    <li <PHP>if($_SESSION['user']['uposition']>3){echo "style='display:none';";}</PHP>>
                        <a href="<{:U('Notice/index')}>"><i class="glyphicon glyphicon-send">&nbsp;</i> 公告系统 </a>
                    </li>
                    <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="javascript:;" data-toggle="collapse" data-target="#demo1"><i class="glyphicon glyphicon-briefcase">&nbsp;</i> 部门管理 <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo1" class="collapse">
                            <li>
                                <a href="<{:U('Group/index')}>"> &nbsp;&nbsp;&nbsp;&nbsp;部门列表</a>
                            </li>
                            <li>
                                <a href="<{:U('Group/add')}>"> &nbsp;&nbsp;&nbsp;&nbsp;添加部门</a>
                            </li>
                        </ul>
                    </li>
                    <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="<{:U('Jyx/index')}>"><i class="glyphicon glyphicon-eye-open">&nbsp;</i> 建议箱 </a>
                    </li>
                    <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="<{:U('Limage/index')}>"><i class="glyphicon glyphicon-comment">&nbsp;</i> 轮播图管理</a>
                    </li>
                    <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="<{:U('Honor/index')}>"><i class="glyphicon glyphicon-comment">&nbsp;</i> 文化墙管理</a>
                    </li>
                    <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="<{:U('Friendly/index')}>"><i class="glyphicon glyphicon-link">&nbsp;</i> 友情链接管理 </a>
                    </li>
                     <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="javascript:;" data-toggle="collapse" data-target="#demo2"><i class="glyphicon glyphicon-briefcase">&nbsp;</i> 职位管理 <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo2" class="collapse">
                            <li>
                                <a href="<{:U('Boss/index')}>"> &nbsp;&nbsp;&nbsp;&nbsp;职位列表</a>
                            </li>
                            <li>
                                <a href="<{:U('Boss/lzgl')}>"> &nbsp;&nbsp;&nbsp;&nbsp;离职管理</a>
                            </li>
                        </ul>
                    </li>

                    <li <PHP>if($_SESSION['user']['uposition']>2){echo "style='display:none';";}</PHP>>
                        <a href="javascript:;" data-toggle="collapse" data-target="#demo4"><i class="glyphicon glyphicon-briefcase">&nbsp;</i> 餐饮管理系统 <i class="fa fa-fw fa-caret-down"></i></a>
                        <ul id="demo4" class="collapse">
                            <li>
                                <a href="<{:U('Foodman/guanli')}>"> &nbsp;&nbsp;&nbsp;&nbsp;食材管理</a>
                            </li>
                            <li>
                                <a href="<{:U('Foodman/index')}>"> &nbsp;&nbsp;&nbsp;&nbsp;食材口味建议</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </nav>
        <block name='main'>
        <div id="page-wrapper" style="background-image:url('__PUBLIC__/css/a.jpeg');">

            <div class="container-fluid">

                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h2 class="page-header">
                            员工通道首页
                        </h2>
                        <ol class="breadcrumb">
                            <li class="active">
                                <i class="fa fa-dashboard"></i> 您的位置 => 首页
                            </li>
                        </ol>
                    </div>
                </div>
                <!-- /.row -->
                <div class="row">
                    <div class="col-lg-12">
                        <div class="alert alert-info alert-dismissable h4">
                            <{$name1}>,欢迎您使用本公司OA系统<br>
                            上次登录时间:<{$lastlogin}>
                        </div>
                    </div>
                </div>
                <!-- /.row -->

                <div class="row" >
                    <div class="col-lg-6 col-md-6 ">
                        <div >                          
                            <div class="panel panel-primary" id='k1'>                                       
                                <div class="panel-footer">
                                    <span class="pull-left h4">公告板 &nbsp;<i class="glyphicon glyphicon-eye-open"></i></span>
                                    <div class="clearfix"></div>
                                </div>                     
                        </div>                  
                        </div>
                        <div id='box' class='h4'>
                         <ul id="newslist" class='h3'>
                            <volist name='list' id='v'>
                            <li><a href="<{:U('Notice/ncontent',array('id'=>$v['id']))}>"><p><{$v.ntitle}></p></a></li>                        
                            </volist>
                        </ul>
                        </div>
                    </div>
                    
                    <div class="col-lg-6 col-md-6">
                    <include file='Yg/rili' />
                    </div>
                    
                </div>
                <!-- /.row -->

            </div>
            <!-- /.container-fluid -->

        </div>
        <script>
            $(function(){
                setInterval(function (){
                    $('#newslist li').last().fadeTo(0,0).hide().prependTo('#newslist').slideDown(1000).fadeTo(1000,1);
                },2000)
            })       
        </script>

        <!-- /#page-wrapper -->
        </block>
    </div>
    <!-- /#wrapper -->
    <!-- 自己写的JS  -->

    <!-- jQuery -->
    <script src="__PUBLIC__/MB_PUBLIC/js/jquery.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="__PUBLIC__/MB_PUBLIC/js/bootstrap.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="__PUBLIC__/MB_PUBLIC/js/plugins/morris/raphael.min.js"></script>
    <script src="__PUBLIC__/MB_PUBLIC/js/plugins/morris/morris.min.js"></script>
    <script src="__PUBLIC__/MB_PUBLIC/js/plugins/morris/morris-data.js"></script>

</body>

</html>
